<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
<f:view contentType="text/html">	
	<h:head>
		<title>三一 - 问卷调查</title>
		<link href="/resources/css/login.css" rel="stylesheet" type="text/css" />

		<!--<script>
			function reurl() {
				url = location.href;
				var times = url.split("t=");
				if (times[1].length &lt; 2) {
                    if(url.indexOf("?") != -1) {
                        url += "&amp;t=1";
                    } else {
                        url += "?t=1";
                    }
					self.location.replace(url);
				}
			}
			onload = reurl
		</script>-->
	</h:head>
	
	<ui:param name="bean" value="#{loginAction}" />
	
	<h:body>
   	<div class="top">
        <div class="wrap" style="hight:50px">
            <img src="/resources/images/logo.png" style="hight:50px"  alt="" class="imglogo"></img>
        </div>
    </div>
    <div class="wrap">
        <div class="maintitle"></div>
        <div class="maincon">
        	<h:form id="adminLogin-login-form">
	            <div class="filed">用户名<h:inputText id="opName" value="#{bean.username}" /></div>
	            <div class="filed">密　码<h:inputSecret value="#{bean.password}" converter="passwordConverter" /></div>
	            
	            <div class="button"><h:commandButton action="#{bean.login()}" /></div>
	         </h:form>
        </div>
    </div>
  </h:body>
</f:view>
</html>

